var o = require("../../utils/config"), n = require("../../utils/storage");

Page({
    data: {
        show: !0,
        webViewUrl: "",
        loadingImg: o.resourceRoot + "InvoiceLoading.png"
    },
    onLoad: function(e) {
        var a = n.isLogin(), t = "";
        for (var i in e) if (e.hasOwnProperty(i)) {
            var c = e[i];
            t += "&".concat(i, "=").concat(c);
        }
        if (a) {
            var r = "".concat(o.h5InvoiceUrl, "?userId=").concat(n.getStorageSync(n.storageKey.uid), "&showNavBar=false").concat(t);
            this.setData({
                webViewUrl: r
            });
        } else wx.navigateTo({
            url: "/pages/authorize/authorize?path=invoice&".concat(t)
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    handleShow: function() {}
});